﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace SYSoft.Model.Models.DeviceManage.Maintain
{

    /// <summary>
    /// 巡检任务表  
    /// </summary>
    [SqlSugar.SugarTable("wh_tasks_baselib")]
    public class WH_Baselib
    {
        /// <summary>
        /// ID  自增的主键一定要加IsIdentity特性 防止插入失败
        /// </summary>
        [SugarColumn(IsNullable = false, IsPrimaryKey = true)]
        public int Id { get; set; }

        /// <summary>
        /// 设备ID
        /// </summary>
        public int DeviceId { get; set; }

        /// <summary>
        /// 设备名称
        /// </summary>
        public string DeviceName { get; set; }



        /// <summary>
        /// 任务名称
        /// </summary>
        public string TaskName { get; set; }



        public string DeviceFlag { get; set; }
        /// <summary>
        /// 任务内容
        /// </summary>
        public string TaskContent { get; set; }


        /// <summary>
        /// 计划时间
        /// </summary>
        public DateTime PlanTime { get; set; }



        /// <summary>
        /// 标志位   0 新任务未执行   1.开始执行   2 任务已完成   10 任务异常  20 异常已修复
        /// </summary>
        public int Flag { get; set; }



        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreatTime { get; set; } = DateTime.Now;


        public string  PeopleName { get; set; }


        /// <summary>
        /// 完成时间
        /// </summary>
        public DateTime FinishTime { get; set; }

    }
}
